# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-dateutil
_pkgname=python-dateutil
pkgver=2.8.2
pkgrel=2
pkgdesc='Extensions to the standard Python datetime module.'
url='https://pypi.org/project/python-dateutil/#files'
arch=('any')
license=('Apache' 'BSD')
depends=('python2' 'python2-six')
makedepends=('python2-setuptools' 'python2-pip')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('6538858e4a3e2d1de1bf25b6d8b25e3a8d20bf60fb85e32d07ac491c90ce193e268bb5641371b8a79fb0f033a184bac9896b3bc643c1aca9ee9c6478286ac20c')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

